<%@ page import="java.util.Enumeration" %>
<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<html>
<head>
    <title>使用request内置对象</title>
</head>
<body bgcolor="#ccfffcc">
<h1>您刚才输入的内容是:</h1>
<%
//获取到提交的所有属性名
    Enumeration enu = request.getParameterNames();
    //循环查看每个属性信息
    while (enu.hasMoreElements()){
        String paramterName = (String) enu.nextElement();
        String paramtervalue = request.getParameter(paramterName);
        out.print("参数名称："+paramterName+"<br>");
        out.print("参数内容："+paramtervalue+"<br>");
    }
%>
</body>